package day0602;

import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        while(1<100){
            System.out.println("请输入您的年龄：");
            int age=s.nextInt();
            if(age>=18){
                System.out.println("您属于成年人");
            }else if(0<age && age<18){
                System.out.println("您属于未成年人");//sout
            }else{
                System.out.println("您输入的年龄无效");
            }
        }
    }
}

